<%
If (GetVars("layout","POST")="1") Then
  numCol = (CInt(GetVars("w1a","POST")) * 100 + CInt(GetVars("w1ai","POST"))) / 50
  numRow = (CInt(GetVars("h1a","POST")) * 100 + CInt(GetVars("h1ai","POST"))) / 50
Else
  numCol = (CInt(GetVars("w2a","POST")) * 100 + CInt(GetVars("w2ai","POST"))) / 50
  numRow = (CInt(GetVars("h2a","POST")) * 100 + CInt(GetVars("h2ai","POST"))) / 50

  areB(0) = (CInt(GetVars("w2b","POST")) * 100 + CInt(GetVars("w2bi","POST"))) / 50
  areB(1) = (CInt(GetVars("h2b","POST")) * 100 + CInt(GetVars("h2bi","POST"))) / 50
End If

If isL And numCol + areB(0) > 34 Then
  numCol = numCol - (numCol + areB(0) - 34)
End If 
' Response.Write numCol
' Response.Write "<br />"
' Response.Write numRow
' Response.Write "<br />"
' Response.Write areB(0)
' Response.Write "<br />"
' Response.Write areB(1)

Dim Paint,Edt
Paint = fnPattern("",GetVars("fill","POST"),GetVars("border","POST"),GetVars("checkered","POST"))
numCol = 1
numRow = 1
Edt = fnPattern("Edt",GetVars("fill","POST"),"","")
%>
<input id="Pattern" name="pattern" value="<%=GetVars("pattern","POST")%>" type="hidden">
<input id="PatternEdt" data-fill="<%=GetVars("fill","POST")%>" name="pattern" value="<%=GetVars("pattern","POST")%>" type="hidden">
<input type="hidden" id="fill" name="fill" value="<%=GetVars("fill","POST")%>" />
<input type="hidden" id="border" name="border" value="<%=GetVars("border","POST")%>" />
<input type="hidden" id="checkered" name="checkered" value="<%=GetVars("checkered","POST")%>" />
<table width="100%">
  <tr>
    <td><h2 class="step-title">第三步：细节调整</h2></td>
  </tr>
  <tr>
  	<td>
    <table>
      <tr>
      	<td width="33.33%">
          <h3 class="sub-title">选取颜色和样式</h3>
          <table>
            <tr valign="top">
              <td><%=fnSelect("Edt","fill")%></td>
              <td width="101"><%=fnColors("Edt","fill")%></td>
              <td>
                <%=Edt%>
              </td>
            </tr>
          </table>
        </td>
      	<td width="33.33%">
          <h3 class="sub-title">单块修改</h3>
          <p>从左边选择样式和颜色，在下方磁砖区域点击或拖动修改；</p>
        </td>
      	<td width="33.33%">
          <h3 class="sub-title">整行/列填充</h3>
          <p>可通过点击<nobr>"<img src="images/U_tools.gif" alt="U" width="8" height="8">".</nobr>图标快速修改整行或整列</p>
        </td>
      </tr>
    </table>
    </td>
  </tr>
  <tr>
  	<td bgcolor="#CCCCCC">
      <div style="max-width:1216px;padding-bottom:15px;overflow-x:auto"><%=Paint%></div>
    </td>
  </tr>
</table>
<br />
<br />
<br />